package com.cskaoyan.market.db.domain;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class User {
    @Length(min = 6,max = 20,message = "用户名必须在6到20位之间")
    private String username;
    @Length(min = 6,max = 20,message = "密码必须在8到20位置之间")
    private String password;
}
